import type { ArticleData, ArticleResult ,SelectData} from "@/types/article"
import { http } from "@/utils/myRequest"

// 获取频道列表
export const getSelectListApi = () => {
  return http<SelectData>({
      url: '/v1_0/channels'
  })
}

// 获取内容列表
export const getArticleListApi = (data: ArticleData) => {
    return http<ArticleResult>({
        url: '/v1_0/mp/articles',
        params: data
    })
}

